from openai import OpenAI
from globle import configs as cfg
client=OpenAI(api_key=cfg.DEEPSEEK_API_KEY,base_url='https://api.deepseek.com')
messages=[{'role':'user','content':'世界上最高的山峰是什么'}]
response=client.chat.completions.create(
    model='deepseek-chat',
    messages=messages
)
print(response.choices[0].index)
print('--'*50)
messages.append(response.choices[0].message)
print(messages)
messages.append({'role':'user','content':'第二高的呢'})
response=client.chat.completions.create(
    model='deepseek-chat',
    messages=messages
)
messages.append(response.choices[0].message)
print(f"Messages Round 2: {messages}")